import React, { useState } from "react";
import { router } from "./router";
import { useRoutes, BrowserRouter } from "react-router-dom";
function App() {
  //   console.log(getRandom(), "---random");

  const RoureCom = () => useRoutes(router);
  // const [name, setName] = useState("");
  // setTimeout(() => {
  //   setName("韩梅梅");
  // }, 1000);

  return (
    <BrowserRouter>
      <RoureCom />
    </BrowserRouter>
  );
}

export default App;
